package com.ai_daily.aitiantian.bean.param;

import android.text.TextUtils;

import com.ai_daily.aitiantian.bean.BaseBean;

import java.util.HashMap;
import java.util.Map;

public class DeviceInfoParam extends BaseBean {

    //     "android": "string",
//     "deviceid": "string",
//      "id": 0,
//      "imei": "string",
//     "ip": "string",
//     "oaid": "string",
//      "uuid": "string"
    private String deviceid;
    private String id;
    private String imei;
    private String ip;
    private String oaid;
    private String uuid;

    public String getDeviceid() {
        return deviceid;
    }

    public void setDeviceid(String deviceid) {
        this.deviceid = deviceid;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getImei() {
        return imei;
    }

    public void setImei(String imei) {
        this.imei = imei;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getOaid() {
        return oaid;
    }

    public void setOaid(String oaid) {
        this.oaid = oaid;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    @Override
    protected Map<String, String> getParamsMap() {
        Map<String, String> params = new HashMap<String,String>();
        if(!TextUtils.isEmpty(deviceid))params.put("deviceid",deviceid);
        if(!TextUtils.isEmpty(id))params.put("id",id);
        if(!TextUtils.isEmpty(imei))params.put("imei",imei);
        if(!TextUtils.isEmpty(ip))params.put("ip",ip);
        if(!TextUtils.isEmpty(oaid)) params.put("oaid",oaid);
        if(!TextUtils.isEmpty(uuid))params.put("uuid",uuid);
        return params;
    }

    @Override
    public String toString() {
        return "DeviceInfoParam{" +
                "deviceid='" + deviceid + '\'' +
                ", id='" + id + '\'' +
                ", imei='" + imei + '\'' +
                ", ip='" + ip + '\'' +
                ", oaid='" + oaid + '\'' +
                ", uuid='" + uuid + '\'' +
                '}';
    }
}
